package com.gzhryc.net_marketing.supplier;

import java.util.Date;

public class Supplier {

    private Long id;
    private String name;
    private DBConfig dbConfig;
    
    private Long accountId;
    private String visitToken;
    private String payToken;
    
    private Long userId;

    private String jdbcKey;
    private Date createDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DBConfig getDbConfig() {
		return dbConfig;
	}

	public void setDbConfig(DBConfig dbConfig) {
		this.dbConfig = dbConfig;
	}

    public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}

	public String getVisitToken() {
        return visitToken;
    }

    public void setVisitToken(String visitToken) {
        this.visitToken = visitToken;
    }

    public String getPayToken() {
        return payToken;
    }

    public void setPayToken(String payToken) {
        this.payToken = payToken;
    }

    public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getJdbcKey() {
        return jdbcKey;
    }

    public void setJdbcKey(String jdbcKey) {
        this.jdbcKey = jdbcKey;
    }
    
    public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}



	public static class DBConfig {

        private String dbType;
        private String ip;
        private Integer port;
        private String dbName;
        private String userName;
        private String password;

        public String getDbType() {
            return dbType;
        }
        public void setDbType(String dbType) {
            this.dbType = dbType;
        }
        public String getIp() {
            return ip;
        }
        public void setIp(String ip) {
            this.ip = ip;
        }
        public Integer getPort() {
            return port;
        }
        public void setPort(Integer port) {
            this.port = port;
        }
        public String getDbName() {
            return dbName;
        }
        public void setDbName(String dbName) {
            this.dbName = dbName;
        }
        public String getUserName() {
            return userName;
        }
        public void setUserName(String userName) {
            this.userName = userName;
        }
        public String getPassword() {
            return password;
        }
        public void setPassword(String password) {
            this.password = password;
        }
    }
}
